﻿<%@ Page Language="C#" MasterPageFile="~/MainMT.master" AutoEventWireup="true" CodeFile="LWMakeInfo.aspx.cs" Inherits="LWMakeInfo" Title="无锡校园人才网-论文" %>
 
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <link href="css/stujob.css" rel="stylesheet" />
    <link href="css/default.css" rel="stylesheet" />
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="leftmain">
        <div class="leftBox">
            <div class="loginChioce">
                <span class="leftTop">论文导航</span>
            </div>
            <div>
                <asp:DataList ID="DataList1" runat="server" border="0" cellspacing="0" cellpadding="5"
                    DataSourceID="SqlDataSource1" HorizontalAlign="Center" Width="198px">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server"
                            NavigateUrl='<%# "LWMakeInfo.aspx?lw="+Eval("lwid")+"&lwc="+Eval("lwcid") %>'
                            Text='<%# Eval("lwtitle") %>' Width="190px"></asp:HyperLink>
                        <br />
                    </ItemTemplate>
                    <AlternatingItemStyle BackColor="WhiteSmoke" />
                </asp:DataList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                    ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                    SelectCommand="SELECT * FROM [lwinfo] WHERE ([lwcid] = @lwcid)">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="lwcid" QueryStringField="lwc" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </div>
        </div>
    </div>

    <div class="rightmain" style="width: 768px;">
        <div class="rightHeader1">
            <div class="rightHLeft"><span class="rightHeaderTitle">当前位置</span></div>
            <div class="rightHMiddle2">
                <span>
                    <a href="Default.aspx" class="moreRight" style="float: left;">首页</a> <span class="jian">></span>
                    <a href="LWMakeInfo.aspx" class="moreRight" style="float: left;">论文撰写</a>
                </span>
            </div>
            <div class="rightHRight"></div>
        </div>
        <div id="zpinfo">
            <div style="text-align: right">
                <asp:FormView ID="FormView1" runat="server" DataKeyNames="lwid"
                    DataSourceID="SqlDataSource2" EmptyDataText="请选择" HorizontalAlign="Center" Height="20px" BorderColor="White">
                    <EditItemTemplate>
                        lwid:
                                        <asp:Label ID="lwidLabel1" runat="server" Text='<%# Eval("lwid") %>' />
                        <br />
                        lwtitle:
                                        <asp:TextBox ID="lwtitleTextBox" runat="server" Text='<%# Bind("lwtitle") %>' />
                        <br />
                        lwcontent:
                                        <asp:TextBox ID="lwcontentTextBox" runat="server"
                                            Text='<%# Bind("lwcontent") %>' />
                        <br />
                        lwtime:
                                        <asp:TextBox ID="lwtimeTextBox" runat="server" Text='<%# Bind("lwtime") %>' />
                        <br />
                        lwcid:
                                        <asp:TextBox ID="lwcidTextBox" runat="server" Text='<%# Bind("lwcid") %>' />
                        <br />
                        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"
                            CommandName="Update" Text="更新" />
                        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server"
                            CausesValidation="False" CommandName="Cancel" Text="取消" />
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        lwtitle:
                                        <asp:TextBox ID="lwtitleTextBox" runat="server" Text='<%# Bind("lwtitle") %>' />
                        <br />
                        lwcontent:
                                        <asp:TextBox ID="lwcontentTextBox" runat="server"
                                            Text='<%# Bind("lwcontent") %>' />
                        <br />
                        lwtime:
                                        <asp:TextBox ID="lwtimeTextBox" runat="server" Text='<%# Bind("lwtime") %>' />
                        <br />
                        lwcid:
                                        <asp:TextBox ID="lwcidTextBox" runat="server" Text='<%# Bind("lwcid") %>' />
                        <br />
                        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
                            CommandName="Insert" Text="插入" />
                        &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server"
                            CausesValidation="False" CommandName="Cancel" Text="取消" />
                    </InsertItemTemplate>
                    <ItemTemplate>
                        <table align="center" cellpadding="4" style="width: 100%; border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
                            <tr>
                                <td align="right" style="text-align: left">标题:<asp:Label ID="lwtitleLabel" runat="server" Font-Bold="True"
                                    Text='<%# Bind("lwtitle") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="text-align: left">时间:<asp:Label ID="lwtimeLabel" runat="server"
                                    Text='<%# Bind("lwtime", "{0:d}") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: left">
                                    <asp:Label ID="lwcontentLabel" runat="server" Text='<%# Bind("lwcontent") %>' />
                                </td>
                            </tr>
                        </table>
                        <br />
                    </ItemTemplate>
                    <EditRowStyle HorizontalAlign="Center" VerticalAlign="Top" />
                </asp:FormView>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server"
                    ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                    SelectCommand="SELECT * FROM [lwinfo] WHERE ([lwid] = @lwid)">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="lwid" QueryStringField="lw" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </div>
        </div>
    </div>

</asp:Content>

